package com.itheima.service.db;

import com.itheima.domain.db.User;
import com.itheima.domain.db.UserInfo;

public interface UserService {

    //保存用户,返回主键
    Long save(User user);

    //根据手机号查询用户
    User findByPhone(String phone);

    //通过userId查到用户信息
    User findPhone(Long userId);

    //修改用户信息
    void update(User user);
}